import React from 'react';
console.log(React.Component)
class Child extends React.Component {

  fn = () => {
    this.props.change([])
  }
  render() {
    console.log(this.props)
    let { list } = this.props;
    return <div className=''>
      {list}
      <h1 onClick={this.fn}>儿子组件</h1>
    </div>;
  }
}
export default Child
